package com.leemz.design.chapter7.none;

public class CpuFactory {
    public static CpuApi createCpuApi(int type) {
        CpuApi cpuApi = null;
        if(1 == type) {
            cpuApi = new IntelCpu(1156);
        } else if(2 == type) {
            cpuApi = new AmdCpu(939);
        }
        return cpuApi;
    }
}